<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
    	
    	<menuitem id="menu_hr_training_employee" name="Training" 
    		parent="hr.menu_hr_root" sequence="10" />
    	
    	<menuitem id="menu_hr_overtime_employee" name="Overtime" 
    		parent="hr.menu_hr_root" sequence="11" />
    	
		<menuitem id="menu_training" name="Training"
            parent="hr.menu_hr_configuration" sequence="42" />
            
		<menuitem id="menu_shift_schedule" name="Shift Schedule"
            parent="hr.menu_hr_configuration" sequence="43" />
            
        <menuitem id="menu_overtime" name="Overtime"
       		 parent="hr.menu_hr_configuration" sequence="44" />
             
        <menuitem id="menu_tools" name="Tools"
            parent="hr.menu_hr_configuration" sequence="60" />
            
        <record id="view_employee_form_inherit" model="ir.ui.view">
            <field name="name">hr.employee.form.inherit</field>
            <field name="model">hr.employee</field>
            <field name="inherit_id" ref="hr.view_employee_form"/>
			<field name="arch" type="xml">
				
				<field name="work_phone" position="after">
					<label for="fingerprint_code" class="oe_edit_only"/>
					<field name="fingerprint_code"/>
				</field>
                <field name="address_id" position="after">
					<field name="comp_email" widget="email"/>
				</field>
				<field name="user_id" position="after">
					<field name="dept_related"/>
					<field name="acc_level"/>
				</field>
				<field name="department_id" position="before">
					<field name="class_id"/>
				</field>
				<field name="job_id" position="after">
					<field name="extitle_id"/>
					<field name="group_id"/>
					<field name="wfield_id"/>
					<field name="pension_id"/>
				</field>
				<group string="Citizenship &amp; Other Info" position="before">
					<group string="Personal Info">
						<field name="gender"/>
		            	<field name="blood_type"/>
		            	<field name="religion_id"/>
		            	<field name="birthday"/>
		            	<field name="marital"/>
		            	<field name="children" invisible="1"/>
		            	<field name="mobile_phone"/>
		            </group>
				</group>
				<field name="address_home_id" position="after">
					<field name="personal_email" widget="email"/>
					<field name="type_id"/>
					<field name="type_id_no"/>
				</field>
				<group string="Citizenship &amp; Other Info" position="after">
					<group string="Education">
	                    <field name="degree_id"/>
	                    <field name="sector_id"/>
	                    <field name="major_id"/>
	                    <field name="univ_id"/> 
	                </group>
	                <group string="Tax">
	                    <field name="ptkp_id"/>
	                    <field name="npwp"/>
	                    <field name="major_id"/>
	                    <field name="univ_id"/> 
	                </group>
	                <group string="Insurance">
	                    <field name="npp"/>
	                    <field name="npkj"/>
	                </group>
	                <group string="KTP Address">
	                    <field name="country_id"/>
	                    <field name="province_id"/>
	                    <field name="city_id"/>
	                    <field name="sub_district_id"/>
	                    <field name="address_by_ktp"/>
	                    <field name="zip_code"/>
	                </group>
	            </group>
                
				<group string="Status" position="replace">
					<group string="Status" invisible="1">
						<field name="marital" position="replace">
							<field name="gender"/>
						</field>
					</group>
				</group>
				<group string="Birth" position="replace">
					<group string="Birth" invisible="1">
						<field name="birthday" position="replace">
							<field name="gender"/>
						</field>
					</group>
				</group>
				
				<page string="Personal Information" position="after">
					<page string="Other Infomation">
						<separator string="Family Structure"/>
						<field name="employ_family_ids">
		                	<form string="Family Structure">
                       			<group>
                       				<field name="structure_id"/>
                       				<field name="name"/>
                       				<field name="gender"/>
                       			</group>
                       			<group>
                       				<field name="city_id_birth"/>
                       				<field name="date_id_birth"/>
                       				<field name="degree_id"/>
                       				<field name="occupation"/>
                       			</group>
                       		</form>
                       		<tree string="Family Structure">
                   				<field name="structure_id"/>
                   				<field name="name"/>
                   				<field name="gender"/>
                   				<field name="city_id_birth"/>
                   				<field name="date_id_birth"/>
                   				<field name="degree_id"/>
                   				<field name="occupation"/>
                       		</tree>
                       	</field>
                       	
		                <separator string="Education History"/>
		                <field name="employ_education_ids">
		                	<form string="Education History">
                       			<group>
                       				<field name="name"/>
                       				<field name="major_id"/>
                       				<field name="address"/>
                       			</group>
                       			<group>
                       				<field name="entry_date"/>
                       				<field name="leave_date"/>
                       			</group>
                       		</form>
                       		<tree string="Education History">
                   				<field name="name"/>
                   				<field name="major_id"/>
                   				<field name="address"/>
                   				<field name="entry_date"/>
                   				<field name="leave_date"/>
                       		</tree>
		                </field>
		
		                <separator string="Language"/>
		                <field name="employ_language_ids">
		                	<form string="language">
                       			<group>
                       				<field name="country_id"/>
                       				<field name="expertise"/>
                       			</group>
                       		</form>
                       		<tree string="language">
                       			<field name="country_id"/>
                       			<field name="expertise"/>
                       		</tree>
		                </field>
		                
		               	<separator string="Career History"/>
		                <field name="employ_career_ids">
		                	<form string="Career History">
			                	<group>
	                   				<field name="name"/>
	                   				<field name="address"/>
	                   			</group>
	                   			<group>
	                   				<field name="entry_date"/>
	                   				<field name="leave_date"/>
	                   				<field name="job_title"/>
	                   				<field name="salary"/>
	                   				<field name="reason"/>
	                   			</group>
		                	</form>
		                	<tree string="Career History">
		                		<field name="name"/>
                   				<field name="address"/>
                   				<field name="entry_date"/>
                   				<field name="leave_date"/>
                   				<field name="job_title"/>
                   				<field name="salary"/>
                   				<field name="reason"/>
		                	</tree>
						</field>
						
						<separator string="Reference"/>
		                <field name="employ_referency_ids">
		                	<form string="Reference">
			                	<group>
	                   				<field name="name"/>
	                   				<field name="job_title"/>
	                   			</group>
	                   			<group>
	                   				<field name="department"/>
	                   				<field name="phone"/>
	                   			</group>
		                	</form>
		                	<tree string="Reference">
		                		<field name="name"/>
                   				<field name="job_title"/>
                   				<field name="department"/>
                   				<field name="phone"/>
		                	</tree>
		                </field>
					</page>
			    </page>     
			    
			    <group string="Active" position="after">
					<group string="Contract Information">
	                    <field name="work_entry_date"/>
	                    <field name="contract_status"/>
	                    <field name="contract_no"/>
	                    <field name="work_expired_date"/> 
	                </group>
			    </group>
            </field> 
        </record>
    </data>
</openerp>
